﻿namespace MyCompany.MyProject.WebApi.ModelDto.DepartmentDto;

///<summary>
/// 部门表视图模型
///</summary>
public class DepartmentVo
{
    /// <summary>
    /// id
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// pid 父级id
    /// </summary>
    public long Pid { get; set; }
    /// <summary>
    /// 父节点集合
    /// </summary>
    public List<long> PidArr { get; set; }
    /// <summary>
    /// 代码关系
    /// </summary>
    public string? CodeRelationship { get; set; }
    /// <summary>
    /// 名称
    /// </summary>
    public string? Name { get; set; }
    /// <summary>
    /// 领导
    /// </summary>
    public string? Leader { get; set; }
    /// <summary>
    /// 排序
    /// </summary>
    public int OrderSort { get; set; } = 0;
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; } = false;
    /// <summary>
    /// 部门状态（0正常 1停用）
    /// </summary>
    public bool Status { get; set; } = false;
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? ModifyTime { get; set; }
    /// <summary>
    /// 是否有子节点
    /// </summary>
    public bool HasChildren { get; set; }
}